package com.yehangtech.designpattern.创建型_单例.demo;

/**
 * 懒汉式（线程不安全）
 */
public class Singleton_02 {

    private static Singleton_02 singleton02;

    private Singleton_02(){
    }

    public static Singleton_02 newInstance(){
        if (null==singleton02){
            singleton02=new Singleton_02();
            return singleton02;
        }
        return singleton02;
    }

}
